<template>
  <el-menu
    style="height: 100%;width:220px"
    overflow-x:hidden
    background-color="rgb(48, 65, 86)"
    text-color="#fff"
    active-text-color="#ffd04b"
    :collapse-transition="false"
    :collapse="isCollapse"
    router
  >

    <div style="height: 60px; line-height: 60px; text-align: center">
      <b style="color: white" v-show="logoTextShow">校园跑腿管理系统</b>
    </div>
    <!-- logo图标 -->

    <!-- 导航一 -->
    <el-menu-item index="/home">
      <i class="el-icon-s-home"></i>
      <span slot="title">主页</span>
    </el-menu-item>
    <!-- 导航一 -->

    <!-- 导航二 -->
    <!-- 用户管理 -->
    <el-submenu index="1">
      <template slot="title">
        <i class="el-icon-user-solid"></i>
        <span slot="title">用户管理</span>
      </template>

      <el-menu-item index="/user">
        <i class="el-icon-s-custom"></i>
        <span slot="title">用户信息</span>
      </el-menu-item>
    </el-submenu>

    <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-s-goods"></i>
        <span slot="title">商品管理</span>
      </template>

      <el-menu-item index="/product">
        <i class="el-icon-goods"></i>
        <span slot="title">商品信息</span>
      </el-menu-item>
      <el-menu-item index="/product-message">
        <i class="el-icon-edit-outline"></i>
        <span slot="title">商品留言</span>
      </el-menu-item>
    </el-submenu>

    <el-submenu index="3">
      <template slot="title">
        <i class="el-icon-s-order"></i>
        <span slot="title">订单管理</span>
      </template>

      <el-menu-item index="/order">
        <i class="el-icon-shopping-bag-2"></i>
        <span slot="title">订单信息</span>
      </el-menu-item>

      <el-menu-item index="/orderg-grabbing">
        <i class="el-icon-s-order"></i>
        <span slot="title">抢单信息</span>
      </el-menu-item>
    </el-submenu>

    <el-submenu index="4">
      <template slot="title">
        <i class="el-icon-truck"></i>
        <span slot="title">骑手管理</span>
      </template>

      <el-menu-item index="/rider">
        <i class="el-icon-user"></i>
        <span slot="title">骑手信息</span>
      </el-menu-item>

      <el-menu-item index="/rider-evaluate">
        <i class="el-icon-notebook-2"></i>
        <span slot="title">骑手评价</span>
      </el-menu-item>
    </el-submenu>

    <el-submenu index="5">
      <template slot="title">
        <i class="el-icon-wallet"></i>
        <span slot="title">公告管理</span>
      </template>

      <el-menu-item index="/notice">
        <i class="el-icon-news"></i>
        <span slot="title">公告信息</span>
      </el-menu-item>
    </el-submenu>

  </el-menu>
</template>

<script>
export default {
  name: "Aside",
  props: {
    isCollapse: Boolean,
    logoTextShow: Boolean,
  },
  methods: {
  },
};
</script>

<style></style>
